projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
442b3d2
)
Quartz: gtk_drag_highlight_draw(): Set the GtkStyleContext to the widget.
author
John Ralls
<jralls@ceridwen.us>
Sun, 11 Sep 2011 17:48:58 +0000
(10:48 -0700)
committer
John Ralls
<jralls@ceridwen.us>
Sun, 11 Sep 2011 17:49:54 +0000
(10:49 -0700)
Otherwise there's no actual context to save and restore.
gtk/gtkdnd-quartz.c
patch
|
blob
|
history
diff --git
a/gtk/gtkdnd-quartz.c
b/gtk/gtkdnd-quartz.c
index 49db14e91e0a185e1263f388668060625e475ecb..b577bb6f105ae4a6d808d6c2b70b87643c773c0f 100644
(file)
--- a/
gtk/gtkdnd-quartz.c
+++ b/
gtk/gtkdnd-quartz.c
@@
-348,7
+348,7
@@
gtk_drag_highlight_draw (GtkWidget *widget,
{
int width = gtk_widget_get_allocated_width (widget);
int height = gtk_widget_get_allocated_height (widget);
- GtkStyleContext *context;
+ GtkStyleContext *context
= gtk_widget_get_style_context (widget)
;
gtk_style_context_save (context);
gtk_style_context_add_class (context, GTK_STYLE_CLASS_DND);